package com.example.v2.model.mapper;

import com.example.v2.model.dto.SpringbootDemoDTO;
import com.example.v2.model.entity.baoxian.SpringbootDemoEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author DongXL
 * @Create 2018-06-29 21:55
 */
@Mapper(componentModel = "spring")
public interface SpringbootDemoMapper {

    SpringbootDemoMapper INSTANCE = Mappers.getMapper(SpringbootDemoMapper.class);

    SpringbootDemoEntity toEntity(SpringbootDemoDTO dto);

    SpringbootDemoDTO toDTO(SpringbootDemoEntity entity);

    List<SpringbootDemoDTO> toDTO(List<SpringbootDemoEntity> entityList);

}
